package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoNoticeAdmin;
import com.yipao.db.domain.YipaoNoticeAdminExample;

public interface NoticeAdminMapper {

    long countByExample(YipaoNoticeAdminExample example);


    int deleteByExample(YipaoNoticeAdminExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoNoticeAdmin record);


    int insertSelective(YipaoNoticeAdmin record);


    YipaoNoticeAdmin selectOneByExample(YipaoNoticeAdminExample example);


    YipaoNoticeAdmin selectOneByExampleSelective(@Param("example") YipaoNoticeAdminExample example, @Param("selective") YipaoNoticeAdmin.Column ... selective);


    List<YipaoNoticeAdmin> selectByExampleSelective(@Param("example") YipaoNoticeAdminExample example, @Param("selective") YipaoNoticeAdmin.Column ... selective);


    List<YipaoNoticeAdmin> selectByExample(YipaoNoticeAdminExample example);


    YipaoNoticeAdmin selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoNoticeAdmin.Column ... selective);


    YipaoNoticeAdmin selectByPrimaryKey(Integer id);


    YipaoNoticeAdmin selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoNoticeAdmin record, @Param("example") YipaoNoticeAdminExample example);


    int updateByExample(@Param("record") YipaoNoticeAdmin record, @Param("example") YipaoNoticeAdminExample example);


    int updateByPrimaryKeySelective(YipaoNoticeAdmin record);


    int updateByPrimaryKey(YipaoNoticeAdmin record);


    int logicalDeleteByExample(@Param("example") YipaoNoticeAdminExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
